<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>健康报告</title>

    <link rel="stylesheet" href="../css/page-health-report.css" />
</head>

<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div class="app" id="app">
        <!-- 页面头部 -->
        <div class="top-header">
            <span class="f-left"><i class="icon-back"></i>返回</span>
            <span class="center">守护云健康管家</span>
            <span class="f-right"><i class="icon-more"></i></span>
        </div>
        <!-- 页面内容 -->
        <div class="contentBox">
            <div class="list-row3">
                <!--v-for="items in list"-->
                <div class="report-item" v-for="items in list">
                    <div class="item-name">
                        <div class="info">
                            <span class="name">{{items.patNo}}</span>
                            <span class="sex">{{items.personOccupation}}</span>
                        </div>

                    </div>
                    <div class="item-content">
                        <ul class="box">
                            <li>临床判断：<span>{{items.diagnosis}}</span></li>
                            <li>主治医师：<span>{{items.doctorNo}}</span></li>
                            <li>医生建议：<span>多喝水，多运动</span></li>
                            <li>就诊单号：<span>{{items.totalPrice}}</span></li>
                            <li>就诊日期：<span>{{items.creatTime}}</span></li>
                            <li>处方单号：<span>{{items.prescriptionNo}}</span></li>
                            <li>身高：<span>{{items.personHeight}}cm</span></li>
                            <li>体重：<span>{{items.personWeight}}kg</span></li>
                            <li>婚姻情况：<span>{{items.personMaritalStatus}}</span></li>
                            <li>户口地址：<span>{{items.personOriginAddrress}}</span></li>
                            <li>工作地址：<span>{{items.personWorkAddress}}</span></li>
                            <li>过敏史：<span>{{items.personAllergicHistory}}</span></li>
                            <li>既往病史：<span>{{items.personPastMedicalHistory}}</span></li>
                            <li>支付金额：<span>{{items.totalPrice}}</span></li>
                        </ul>
                    </div>
                    <div class="item-link">
                        就诊报告
                    </div>
                </div>
            </div>
        </div>
    </div>

 <!-- 页面 css js -->
<script src="../plugins/vue/vue.js"></script>
<script src="../plugins/vue/axios-0.18.0.js"></script>
<!--<script src="../js/page-health-order.js"></script>-->
<script>
        var vue = new Vue({
            el:'#app',
            data:{
                list:[]
            },
            mounted (){
                axios.get("/reg/system/prescription/getAppReport").then((res)=>{
                    if(res.data.code === 200){
                        //查询成功，给模型数据赋值
                        /*this.list = res.data.data;*/
                        console.log(res);
                        this.list = res.data.data
                    }else{
                        //查询失败，弹出提示信息
                        this.$message.error("获取健康报告失败");
                    }
                });
            }
        });
</script>
</body>